from movie_app import models
def search_film(name,time):
    film = models.Movie_info.objects.filter(name = name)
    sql_time = film[0].show_time.strftime('%Y-%m-%d')
    sql_time = sql_time.replace("-","")
    if sql_time == time:
        return film[0]
    return False